﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ExtAspNet;

namespace HY.WEB.SA
{
    public partial class zj_job_view : PageBase
    {
        public string us, whe = "", path = "",tab="zj_job";           
        protected void Page_Load(object sender, EventArgs e)
        {
            us = Session["ID"].ToString();
            if (!IsPostBack)
            {
                if (!String.IsNullOrEmpty(Request["sid"]))
                {
                     hidsid.Text = Request["sid"].Trim();                
                }
               

                BindText(hidsid.Text);
            }

        
        }


        void BindText(string sid)
        {
            BLL.SC.zjjob jbs = new BLL.SC.zjjob();
 
            DataTable dt =BLL.Bllbase.get_table(tab,"sid=" + sid);

            if (dt.Rows.Count > 0)
            {
                hidsid.Text = dt.Rows[0]["sid"].ToString();
                hidbh.Text = dt.Rows[0]["zbh"].ToString();

                ddlzj.Text = dt.Rows[0]["zname"].ToString();
                ddltype.Text = dt.Rows[0]["ztype"].ToString();

                date1.Text = dt.Rows[0]["sdate"].ToString();
                date2.Text = dt.Rows[0]["edate"].ToString();

                lbldtime.Text = dt.Rows[0]["updtime"].ToString();
                lblsales.Text = dt.Rows[0]["sales"].ToString();

                FCKeditor1.Text =Server.HtmlDecode(dt.Rows[0]["zmemo"].ToString());
             

            }

        }
       

    }
}